package com.itheima.d4_proxy2;

public class Test {
    public static void main(String[] args) throws Exception {
        UserService s = new UserServiceImpl();
        UserService proxy = ProxyUtil.createProxy(s);
        proxy.login("admin", "1234567");
        System.out.println("-----------------");
        proxy.deleteUsers();
        System.out.println("-----------------");
        String[] names = proxy.selectUsers();
        for (String name : names) {
            System.out.println(name);
        }
        System.out.println("-----------------");

    }
}
